<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::xobjdetect::WBDetector Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../d3/d30/namespacecv_1_1xobjdetect.html">xobjdetect</a></li><li class="navelem"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html">WBDetector</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="../../d4/db4/classcv_1_1xobjdetect_1_1WBDetector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::xobjdetect::WBDetector Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../d4/d54/group__xobjdetect.html">Extended object detection</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>WaldBoost detector.  
 <a href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#details">More...</a></p>

<p><code>#include &lt;opencv2/xobjdetect.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab1ba0a0a16cdfc3022d03b5422c46a67"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#ab1ba0a0a16cdfc3022d03b5422c46a67">~WBDetector</a> ()</td></tr>
<tr class="separator:ab1ba0a0a16cdfc3022d03b5422c46a67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad19680e6545f49a9ca42dfc3457319e2"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#ad19680e6545f49a9ca42dfc3457319e2">detect</a> (const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;img, std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp;bboxes, std::vector&lt; double &gt; &amp;confidences)=0</td></tr>
<tr class="memdesc:ad19680e6545f49a9ca42dfc3457319e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Detect objects on image using WaldBoost detector.  <a href="#ad19680e6545f49a9ca42dfc3457319e2">More...</a><br /></td></tr>
<tr class="separator:ad19680e6545f49a9ca42dfc3457319e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef2df760f45d25aade518196986e139f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#aef2df760f45d25aade518196986e139f">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;node)=0</td></tr>
<tr class="memdesc:aef2df760f45d25aade518196986e139f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read detector from <a class="el" href="../../de/dd9/classcv_1_1FileNode.html" title="File Storage Node class. ">FileNode</a>.  <a href="#aef2df760f45d25aade518196986e139f">More...</a><br /></td></tr>
<tr class="separator:aef2df760f45d25aade518196986e139f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3720fb425a2d16f6cd0625a2d8bc563e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#a3720fb425a2d16f6cd0625a2d8bc563e">train</a> (const std::string &amp;pos_samples, const std::string &amp;neg_imgs)=0</td></tr>
<tr class="memdesc:a3720fb425a2d16f6cd0625a2d8bc563e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Train WaldBoost detector.  <a href="#a3720fb425a2d16f6cd0625a2d8bc563e">More...</a><br /></td></tr>
<tr class="separator:a3720fb425a2d16f6cd0625a2d8bc563e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d85338895707904ae1ddb4374ec8dac"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#a7d85338895707904ae1ddb4374ec8dac">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const =0</td></tr>
<tr class="memdesc:a7d85338895707904ae1ddb4374ec8dac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write detector to <a class="el" href="../../da/d56/classcv_1_1FileStorage.html" title="XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...">FileStorage</a>.  <a href="#a7d85338895707904ae1ddb4374ec8dac">More...</a><br /></td></tr>
<tr class="separator:a7d85338895707904ae1ddb4374ec8dac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4d5db0d0bc5e276a4a53d8d34fabd14a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html">WBDetector</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html#a4d5db0d0bc5e276a4a53d8d34fabd14a">create</a> ()</td></tr>
<tr class="memdesc:a4d5db0d0bc5e276a4a53d8d34fabd14a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create instance of <a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html" title="WaldBoost detector. ">WBDetector</a>.  <a href="#a4d5db0d0bc5e276a4a53d8d34fabd14a">More...</a><br /></td></tr>
<tr class="separator:a4d5db0d0bc5e276a4a53d8d34fabd14a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>WaldBoost detector. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab1ba0a0a16cdfc3022d03b5422c46a67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1ba0a0a16cdfc3022d03b5422c46a67">&#9670;&nbsp;</a></span>~WBDetector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual cv::xobjdetect::WBDetector::~WBDetector </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4d5db0d0bc5e276a4a53d8d34fabd14a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d5db0d0bc5e276a4a53d8d34fabd14a">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html">WBDetector</a>&gt; cv::xobjdetect::WBDetector::create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create instance of <a class="el" href="../../de/d0e/classcv_1_1xobjdetect_1_1WBDetector.html" title="WaldBoost detector. ">WBDetector</a>. </p>

</div>
</div>
<a id="ad19680e6545f49a9ca42dfc3457319e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad19680e6545f49a9ca42dfc3457319e2">&#9670;&nbsp;</a></span>detect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::xobjdetect::WBDetector::detect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>bboxes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>confidences</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Detect objects on image using WaldBoost detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Input image for detection </td></tr>
    <tr><td class="paramname">bboxes</td><td>Bounding boxes coordinates output vector </td></tr>
    <tr><td class="paramname">confidences</td><td>Confidence values for bounding boxes output vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aef2df760f45d25aade518196986e139f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef2df760f45d25aade518196986e139f">&#9670;&nbsp;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::xobjdetect::WBDetector::read </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read detector from <a class="el" href="../../de/dd9/classcv_1_1FileNode.html" title="File Storage Node class. ">FileNode</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">node</td><td><a class="el" href="../../de/dd9/classcv_1_1FileNode.html" title="File Storage Node class. ">FileNode</a> for input </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3720fb425a2d16f6cd0625a2d8bc563e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3720fb425a2d16f6cd0625a2d8bc563e">&#9670;&nbsp;</a></span>train()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::xobjdetect::WBDetector::train </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>pos_samples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>neg_imgs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Train WaldBoost detector. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos_samples</td><td>Path to directory with cropped positive samples </td></tr>
    <tr><td class="paramname">neg_imgs</td><td>Path to directory with negative (background) images </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7d85338895707904ae1ddb4374ec8dac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d85338895707904ae1ddb4374ec8dac">&#9670;&nbsp;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::xobjdetect::WBDetector::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write detector to <a class="el" href="../../da/d56/classcv_1_1FileStorage.html" title="XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...">FileStorage</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fs</td><td><a class="el" href="../../da/d56/classcv_1_1FileStorage.html" title="XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...">FileStorage</a> for output </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d3/d14/xobjdetect_8hpp.html">xobjdetect.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:49 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
